from django.urls import path
from app01 import views
from web.views import account

urlpatterns = [
    path('example/', views.index.as_view(), name='index'),
    path('register/', account.register, name='register'),
    path('sms/code/', account.send_sms, name='send_sms'),
    path('login/sms/', account.login_sms, name='login_sms'),
    path('login/', account.login, name='login'),
    path('image/code/', account.image_code, name='image_code'),
    path('logout/', account.logout, name='logout'),
    path('museuminfo/<str:museum>/', views.info.as_view(), name='info'),
    path('example/<str:province>/', views.get_province_data, name='get_province_data'),
    path('example/search/<str:search_value>/', views.search, name='search'),
    path('example/antique/<str:antique_id>', views.update_antique, name='update_antique')
]